import {
    ApiMethodContants,
    type ListResultData,
    type ResultData,
} from "@/apis/base";
import request from "@/utils/request";
export interface discussReq {
    id: number,
    page:number,size: number}

export interface discussResultItem{
    id:number,
    content: string,
    nickName: string,
    blogId:number,
}
export function getDiscuss(params: discussReq):Promise<ResultData<ListResultData<discussResultItem>>> {
    const {id, page,size} = params;
    return request.mainAxios({
        url: `/discuss/getDiscuss`,
        params: {
            id,
            page,
            size,
        },
        method: ApiMethodContants.GET
    })
}